package cn.edu.scau.cmi.chenyiqiu.abstractFactory.domainFactory;

import cn.edu.scau.cmi.chenyiqiu.abstractFactory.domainabstractClass.Meat;
import cn.edu.scau.cmi.chenyiqiu.abstractFactory.domain.*;
public abstract class BrandAbstractFactory {
	public static final String Wens="温氏";
	public static final String Tianbang="天邦";
	public static final String Aonong="傲农";
	public abstract Meat getPork();
	public abstract Meat getBeef();
	public abstract Meat getChicken();
	public static BrandAbstractFactory getBrand(String type) {
		BrandAbstractFactory b=null;
		if(type.equals(BrandAbstractFactory.Wens))
			b=new WensFactory();
		else if(type.equals(BrandAbstractFactory.Tianbang))
			b=new TianbangFactory();
		else if(type.equals(BrandAbstractFactory.Aonong))
			b=new AonongFactroy();
		return b;
	}
	
}
